<html>
  <head>
    <script type="text/javascript">
     <!--
<?php
  $artifactId=htmlspecialchars($_GET["artifactId"]);
  $version=htmlspecialchars($_GET["version"]);
  $classifier=htmlspecialchars($_GET["classifier"]);
  $route=$artifactId . "/" . $artifactId . "-" . $version . $classifier;
  $existe=exec("ls " .  $route . ";echo $?");
  if ( $existe == "0" ){
     $redirect= $route;
     $existe=exec("ls -s --block-size=M " . $route ."|cut -d' ' -f1");
     exec("../private/stats/counter.sh downloads_" . $artifactId . "-" . $version . $classifier );
     exec("../private/stats/counter.sh downloads_" . $artifactId);
     echo 'window.location ="http://develenv.softwaresano.com/downloading.php?route=' . $redirect . '&size=' . $existe .'&component=' . $artifactId . "-" . $version . $classifier . '"';
  } else{
     $redirect= "componentNotFound.php?component=" . $route;
     exec("../private/stats/counter.sh notFound");
     echo 'window.location ="http://develenv.softwaresano.com/develenvNotFound.php?route=' .'&component=' . $artifactId . "-" . $version . $classifier . '"';
  }
?>
     //-->
    </script>
  </head>
  <body>
  </body>
</html>

